package ls.jpa.chapterC.service;

import ls.jpa.chapterC.domain.Customer;
import ls.jpa.chapterC.repository.CustomerDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @author Barudisshu
 */
@Service
public class CustomerService {

    @Autowired
    @Qualifier("cus")
    private CustomerDao customerDao;

    public Customer save(Customer customer){
        return customerDao.save(customer);
    }
}
